package com.master;

import static com.util.Vessel.*;

public class HomeCrm {
    //主界面
    public void home(int cId,int tId){
        boolean isFlag = true;
        do {
            System.out.println("请选择您的操作:");
            System.out.println("1.首页");
            System.out.println("2.点菜");
            System.out.println("3.购物车");
            System.out.println("4.个人中心");
            System.out.println("5.退出");
            int choice = scanner.nextInt();
            switch(choice){
                case 1:
                    System.out.println("今日推荐菜:");
                    opMenu.recommendMenus();
                    home(cId,tId);
                    break;
                case 2:
                    opMenuSer.orderMeService(cId,tId);
                    break;
                case 3:
                    trolleyCrm.trolley(cId,tId);
                    break;
                case 4:
                    mindCrm.mind(cId,tId);
                    break;
                case 5:
                    isFlag = false;
                    break;
            }
        }while (isFlag);
    }
}
